import { GCellRenderer } from "../../../../com/mui/controls/GCellRenderer";
import { SIntegralExchangeRecord } from "../../../../Message/Public/SIntegralExchangeRecord";
import { ItemData } from "../../resource/info/ItemData";
import { BaseItem } from "../common/BaseItem";
//class InExShopLatestCellRenderer
    
    export  class InExShopLatestCellRenderer extends GCellRenderer
    {
        constructor()
        {
            super();
            this.init();
            return;
        }

        public /* override */ set data(arg1: Object)
        {
            super.data = arg1;
            super.data = arg1;
            this._record = arg1 as SIntegralExchangeRecord;
            if (this._record) 
            {
                this._itemData = new ItemData(this._record.itemCode);
                this._baseItem.itemData = this._itemData;
            }
            return;
        }

        /* internal  */init(): void
        {
            this._baseItem = new BaseItem();
            this._baseItem.setSize(32, 32);
            this._baseItem.move(2, 2);
            this._baseItem.isDragAble = false;
            this._baseItem.isDropAble = false;
            this._baseItem.isShowLock = true;
            this._baseItem.itemData = new ItemData(14011514);
            addChild(this._baseItem);
            return;
        }

        /* internal */ /* var */_baseItem: BaseItem;

        /* internal */ /* var */_record: SIntegralExchangeRecord;

        /* internal */ /* var */_itemData: ItemData;
    }
